package com.awonsome.mall.ums.boot.mapper;

import com.awonsome.mall.ums.pojo.entity.UmsMember;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yangdejun
 * @date 2022/1/27 11:34
 */
@Mapper
public interface UmsUserMapper extends BaseMapper<UmsMember> {

    /**
     * 根据用户昵称用户列表
     *
     * @param page
     * @param nickname
     * @return
     */
    List<UmsMember> list(Page<UmsMember> page, @Param(value = "nickname") String nickname);

}
